package com.tarena.lbs.content.pojo.param;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ArticleContentParam {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("article_title")
    @NotBlank(message = "文章标题不能为空")
    private String articleTitle;
    @TableField("article_category_id")
    @NotNull(message = "文章分类不能为空")
    private Integer articleCategoryId;
    @TableField("article_category")
    private String articleCategory;
    @TableField("article_label")
    @NotBlank(message = "文章标签不能为空")
    private String articleLabel;
    @TableField("article_digest")
    @NotBlank(message = "文章摘要不能为空")
    private String articleDigest;
    @TableField("article_cover")
    private String articleCover;
    @TableField("article_main_pic")
    private String articleMainPic;
    @TableField("article_detail")
    @NotBlank(message = "文章详情不能为空")
    private String articleDetail;
    @TableField("shop_id")
    private Integer shopId;
    @TableField("activity_word")
    @NotBlank(message = "活动引流标语不能为空")
    private String activityWord;
    @TableField("activity_id")
    private Integer activityId;
    @TableField("latitude")
    @NotBlank(message = "文章定位不能为空")
    private String latitude;
    @TableField("longitude")
    private String longitude;
    @TableField("article_status")
    private Integer articleStatus;
    @TableField("access_count")
    private Integer accessCount;
    @TableField("like_count")
    private Integer likeCount;
    @TableField("favorite_count")
    private Integer favoriteCount;
    //1==代表前台添加   2==代表后台添加
    @TableField("source")
    private Integer source;
}